/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author dongyushi
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2013-3-13 上午10:24:09          dongyushi        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Entity
@Table(name = "PROCESS_EVENT_TYPE_RULE")
public class ProcessEventTypeRule implements java.io.Serializable {

    private static final long serialVersionUID = 8979439062494507739L;
    private Long id;
    private Long workOrderId;
    private Long eventTypeId;

    public ProcessEventTypeRule() {
    }

    public ProcessEventTypeRule(Long id) {
        this.id = id;
    }

    public ProcessEventTypeRule(Long id, Long workOrderId, Long eventTypeId) {
        this.id = id;
        this.workOrderId = workOrderId;
        this.eventTypeId = eventTypeId;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "WORK_ORDER_EVENT_TYPE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "WORK_ORDER_ID", precision = 18, scale = 0)
    public Long getWorkOrderId() {
        return this.workOrderId;
    }

    public void setWorkOrderId(Long workOrderId) {
        this.workOrderId = workOrderId;
    }

    @Column(name = "EVENT_TYPE_ID", precision = 18, scale = 0)
    public Long getEventTypeId() {
        return this.eventTypeId;
    }

    public void setEventTypeId(Long eventTypeId) {
        this.eventTypeId = eventTypeId;
    }

    @Override
    public String toString() {
        return "WorkOrderEventType [id=" + id + ", workOrderId=" + workOrderId + ", eventTypeId=" + eventTypeId + "]";
    }

}